-- GENERATED SPELL FOR [Vilebranch Berserker] --


function spell0_2643(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_2643', 531, 1)
end

function Sorts_2643(pUnit, Event)
local choix_sorts_2643 = math.random(0, 0)
if choix_sorts_2643 == 0 then
pUnit:RegisterEvent('spell0_2643', 1, 1)
end
end

function mob2643_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2643', math.random(1500, 3000), 1)
end

function mob2643_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2643_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2643_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2643, 1, 'mob2643_Action')
RegisterUnitEvent(2643, 2, 'mob2643_Leave')
RegisterUnitEvent(2643, 3, 'mob2643_Kill')
RegisterUnitEvent(2643, 4, 'mob2643_Die')
